package com.yanq.liancar.activity;
/*
 *  @创建者     liyan
 *  @创建时间   2018/11/10  17:21
 *  @描述       ${TODO}
 */

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.LinearLayout;

import com.gyf.barlibrary.ImmersionBar;
import com.vondear.rxtool.RxActivityTool;
import com.yanq.liancar.R;
import com.yanq.liancar.activity.base.BaseToolbarActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class LegalDeclarationActivity extends BaseToolbarActivity {
    @BindView(R.id.ll_Privacy)
    LinearLayout llPrivacy;
    @BindView(R.id.ll_contract)
    LinearLayout llContract;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_legaldeclaration);
        ButterKnife.bind(this);
        ImmersionBar.with(this).statusBarColor(R.color.white).statusBarDarkFont(true).init();
        mTvTitle.setText("法律声明");

    }

    @OnClick({R.id.ll_Privacy, R.id.ll_contract})
    public void onViewClicked(View view) {
        Bundle bundle=new Bundle();
        switch (view.getId()) {
            case R.id.ll_Privacy:
                bundle.putInt("where",1);
                RxActivityTool.skipActivity(this, TermsOfServiceActivity.class,bundle);
                break;
            case R.id.ll_contract:
                bundle.putInt("where",2);
                RxActivityTool.skipActivity(this, TermsOfServiceActivity.class,bundle);
                break;
        }
    }
}
